﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Teacher:Program
    {
        public int Id;
        public string Name;
        public string Sex;
        public int Cardid;
        public int Tel;
        public string Title;
        public string Wageno;

        public Teacher(int Id, string Name, string Sex, int Cardid, int Tel, string Major, string Grade) : base(Id, Name, Sex, Cardid, Tel)
        {
            this.Id = Id;
            this.Name = Name;
            this.Sex = Sex;
            this.Cardid = Cardid;
            this.Tel = Tel;
            this.Title = Major;
            this.Wageno = Grade;
        }
        public void Zxc()
        {
            Console.WriteLine("学生编号{0}姓名{1}性别{2}身份证号{3}联系方式{4}专业{5}年级{6}", this.Id, this.Name, this.Sex, this.Cardid, this.Tel, this.Title, this.Wageno);
        }
    }
}
